<?php /* Smarty version Smarty-3.1.18, created on 2014-11-10 22:45:08
         compiled from "styles\initializr\templates\edit.htpl" */ ?>
<?php /*%%SmartyHeaderCode:9023535d17c67d2795-45728840%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2a0125cfb2457b68649ab8675df1053ba89ca884' => 
    array (
      0 => 'styles\\initializr\\templates\\edit.htpl',
      1 => 1415655905,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '9023535d17c67d2795-45728840',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_535d17c6812172_48818191',
  'variables' => 
  array (
    'fehler' => 0,
    'success' => 0,
    'ks_day' => 0,
    'ks_art' => 0,
    'ks_arten' => 0,
    'ks_medis' => 0,
    'medikamente' => 0,
    'ks_grad' => 0,
    'grad' => 0,
    'ks_info' => 0,
    'ks_lastchange' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_535d17c6812172_48818191')) {function content_535d17c6812172_48818191($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\ksk\\include\\smarty\\plugins\\modifier.date_format.php';
if (!is_callable('smarty_function_html_checkboxes')) include 'C:\\xampp\\htdocs\\ksk\\include\\smarty\\plugins\\function.html_checkboxes.php';
if (!is_callable('smarty_function_html_radios')) include 'C:\\xampp\\htdocs\\ksk\\include\\smarty\\plugins\\function.html_radios.php';
?><?php if ($_smarty_tpl->tpl_vars['fehler']->value) {?>
<h2>Fehler</h2>
<?php echo $_smarty_tpl->tpl_vars['fehler']->value;?>
 <?php } elseif ($_smarty_tpl->tpl_vars['success']->value) {?>
<h2>Information</h2>
<?php echo $_smarty_tpl->tpl_vars['success']->value;?>
 <?php } else { ?>
<div id="eintrag_daten">
	<form action="index.php?seite=neu" method="post">
		<input type="hidden" name="forumlar" value="speichern"> <input
			name="datum" type="hidden" value="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['ks_day']->value,'%d.%m.%Y');?>
">
		<header>
		<h1>Eintrag für den <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['ks_day']->value,'%d.%m.%Y');?>
</h1>
		<p style="text-align: right;">
			<a href="#" id="datum_waehlen">anderes Datum wählen</a>
		</p>
		</header>
		<section>
		<h2>
			<label id="art">Kopfschmerzart</label>
		</h2>
		<p><?php echo smarty_function_html_checkboxes(array('name'=>'art','selected'=>$_smarty_tpl->tpl_vars['ks_art']->value,'labels'=>false,'options'=>$_smarty_tpl->tpl_vars['ks_arten']->value,'separator'=>''),$_smarty_tpl);?>
</p>
		</section>
		<section>
		<h2>
			<label id="medikament">Medikament</label>
		</h2>
		<p>
			<?php echo smarty_function_html_checkboxes(array('name'=>'medikament','selected'=>$_smarty_tpl->tpl_vars['ks_medis']->value,'labels'=>false,'options'=>$_smarty_tpl->tpl_vars['medikamente']->value,'separator'=>'<br />'),$_smarty_tpl);?>

		</p>
		</section>
		<section>
		<h2>
			<label id="graduierung">Graduierung</label>
		</h2>
		<p><?php echo smarty_function_html_radios(array('name'=>'graduierung','selected'=>$_smarty_tpl->tpl_vars['ks_grad']->value,'labels'=>false,'options'=>$_smarty_tpl->tpl_vars['grad']->value,'separator'=>''),$_smarty_tpl);?>
</p>
		</section>
		<section>
		<h2>
			<label id="graduierung">Zusätzliche Informationen</label>
		</h2>
		<p>
			<textarea cols="50" name="info"><?php echo $_smarty_tpl->tpl_vars['ks_info']->value;?>
</textarea>
		</p>
		</section>
		<footer> <?php if ($_smarty_tpl->tpl_vars['ks_lastchange']->value) {?><span
			style="font-size: x-small; float: left">Letzte Änderung:
			<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['ks_lastchange']->value,'%d.%m.%Y um %H:%M');?>
</span><?php }?>
		<p style="text-align: right">
			<input type="submit" name="button" value="Eintrag löschen"> <input
				type="submit" name="button" value="Eintrag speichern">
		</p>
		</footer>
	</form>
	</p>
</div>
<div id="eintrag_datum">
	<header> <script>
		$(function() {
			$("#datum").datepicker({
				showOtherMonths : true,
				selectOtherMonths : true
			});
		});
	</script>
	<h1>Datum auswählen</h1>
	<form action="index.php?seite=neu" method="post">
		<input type="hidden" name="forumlar" value="datum">
		<p>
			<label id="datum">Datum</label><br> <input type="text" id="datum" > <!-- value="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['ks_day']->value,'%d.%m.%Y');?>
" -->
		</p>
		<input type="submit">
	</form>
	</header>
</div>
<?php }?>
<?php }} ?>
